package com.xiaoluo.lottery.common.weixin.base;

import com.xiaoluo.lottery.common.weixin.utils.Configure;
import com.xiaoluo.lottery.common.weixin.utils.RandomStringGenerator;
import com.xiaoluo.lottery.common.weixin.utils.Signature;
import org.simpleframework.xml.Element;

/**
 * Project : lottery
 * Package : com.xiaoluo.lottery.common.weixin.pay.beans
 * Created by Willian.
 * Date  : 2016/4/6 20:10.
 */
public class BaseRes {

    @Element(name = "appid",required = false)           private String appid;//    公众账号ID	appid	是	String(32)	wx8888888888888888	调用接口提交的公众账号ID
    @Element(name = "return_code")                      private String returnCode = "FAIL";//    返回状态码	return_code	是	String(16)	SUCCESS    SUCCESS/FAIL    此字段是通信标识，非交易标识，交易是否成功需要查看result_code来判断
    @Element(name = "return_msg",required = false)      private String returnMsg;//    返回信息	return_msg	否	String(128)	签名失败    返回信息，如非空，为错误原因            签名失败    参数格式校验错误
    @Element(name = "mch_id",required = false)          private String mchId;//    商户号	mch_id	是	String(32)	1900000109	调用接口提交的商户号
    @Element(name = "nonce_str",required = false)       private String nonceStr;//    随机字符串	nonce_str	是	String(32)	5K8264ILTKCH16CQ2502SI8ZNMTM67VS	微信返回的随机字符串
    @Element(name = "sign",required = false)            private String sign;//    签名	sign	是	String(32)	C380BEC2BFD727A4B6845133519F3AD6	微信返回的签名，详见签名算法
    @Element(name = "result_code",required = false)     private String resultCode;//    业务结果	result_code	是	String(16)	SUCCESS	SUCCESS/FAIL
    @Element(name = "err_code",required = false)        private String errCode;//    错误代码	err_code	否	String(32)	SYSTEMERROR	详细参见第6节错误列表
    @Element(name = "err_code_des",required = false)    private String errCodeDes;//    错误代码描述	err_code_des	否	String(128)	系统错误	错误返回的信息描述
    @Element(name = "device_info",required = false)     private String deviceInfo;               //设备号	 否	String(32)	013467007045764	微信支付分配的终端设备号，


    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrCodeDes() {
        return errCodeDes;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }
}
